-- GENERATED SPELL FOR [Ashtongue Shaman] --


function spell0_21453(pUnit, Event) --@Bloodlust,n/a--
pUnit:FullCastSpellOnTarget(6742,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_21453', 30250, 1)
end

function spell1_21453(pUnit, Event) --@Bloodlust,n/a--
pUnit:FullCastSpellOnTarget(37067,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_21453', 30265, 1)
end

function spell2_21453(pUnit, Event) --@Fire Nova Totem,Self--
if charge_disp ~= 'na' then
pUnit:FullCastSpellOnTarget(32062,pUnit)
local charge_disp = 'na'
end
pUnit:RegisterEvent('Sorts_21453', 1, 1)
end

function spell3_21453(pUnit, Event) --@Lightning Shield,n/a--
pUnit:FullCastSpellOnTarget(12550,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_21453', 0, 1)
end

function Sorts_21453(pUnit, Event)
local choix_sorts_21453 = math.random(0, 3)
if choix_sorts_21453 == 0 then
pUnit:RegisterEvent('spell0_21453', 1, 1)
end
if choix_sorts_21453 == 1 then
pUnit:RegisterEvent('spell1_21453', 1, 1)
end
if choix_sorts_21453 == 2 then
pUnit:RegisterEvent('spell2_21453', 1, 1)
end
if choix_sorts_21453 == 3 then
pUnit:RegisterEvent('spell3_21453', 1, 1)
end
end

function mob21453_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_21453', math.random(1500, 3000), 1)
end

function mob21453_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob21453_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob21453_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(21453, 1, 'mob21453_Action')
RegisterUnitEvent(21453, 2, 'mob21453_Leave')
RegisterUnitEvent(21453, 3, 'mob21453_Kill')
RegisterUnitEvent(21453, 4, 'mob21453_Die')
